package com.hh.org.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author 黄浩
 * @create 2022-06-06 17:27
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_employee")
public class Emp implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String username;
    private String email;
    private String phone;
    private String salt;
    private String password;
    private Integer age;
    private Integer state;
    private Long departmentId;
    private Long logininfoId;
    private Long shopId;

    @TableField(exist = false)
    private Dept dept;

    @TableField(exist = false)
    private LoginInfo loginInfo;
}
